/*
 ============================================================================
 Name        : myLib.c
 Author      :
 Version     :
 Copyright   : Your copyright notice
 Description : Contains functions created by the authors for application development
 ============================================================================
 */

#ifndef MYLIB_C_
#define MYLIB_C_

#include <ctype.h>
#include <stddef.h>
/*! \fn convertToUpperCase(char *sPtr)
\brief Converts an input string to uppercase
\param sPtr Input string
*/
void convertToUpperCase(char *sPtr)
{
	while (*sPtr != '\0')
	{
		if (islower(*sPtr))
			*sPtr = toupper(*sPtr);

		sPtr++;
	}
}
/*! \fn zeromem(void *out, size_t outlen)
\brief Empty memory
\param out Output
\param outlen Output length
*/
void zeromem(void *out, size_t outlen)
{
	unsigned char *mem = out;
	while (outlen-- > 0)
	{
		*mem++ = 0;
	}
}

#endif /* MYLIB_C_ */
